home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- dontPassEvent()
- end
-
- on exitFrame
- SDRolloverScript()
- go(the frame)
- end
-
- on SDRolloverScript
- global gLastSprite
- set vNowSprite to 0
- if the frameLabel = "Search" then
- set vIgnore to 33
- else
- if the frameLabel = "Search-2" then
- set vIgnore to 34
- else
- if the frameLabel = "Search-3" then
- set vIgnore to 35
- else
- if the frameLabel = "Search-4" then
- set vIgnore to 36
- else
- set vIgnore to -1
- end if
- end if
- end if
- end if
- repeat with vI = 25 to 28
- if rollOver(vI) then
- set vNowSprite to vI
- exit repeat
- end if
- end repeat
- if vNowSprite = 0 then
- repeat with vI = 33 to 37
- if rollOver(vI) then
- set vNowSprite to vI
- exit repeat
- end if
- end repeat
- if (vNowSprite = 0) or not (the visible of sprite 37) then
- if rollOver(44) then
- set vNowSprite to 44
- end if
- end if
- end if
- if vNowSprite = vIgnore then
- set vNowSprite to 0
- end if
- if not (vNowSprite = 0) then
- hRollOverOn(vNowSprite)
- set gLastSprite to vNowSprite
- else
- puppetSprite(gLastSprite, 0)
- set gLastSprite to 0
- end if
- end
-
- on keyDown
- if the key = RETURN then
- doSearch()
- dontPassEvent()
- else
- pass()
- end if
- end
-